package com.gds.wiki.cloud.framework.web.common;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;
import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class CommonPageQuery implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Min(value = 1, message = "页数必须大于0")
	private Integer page = 1;

	@Min(value = 1, message = "每页条数必须大于0")
	private Integer size = 10;

	private String seq = "ASC";

	private String properties = "id";

}